//package com.ruoyi.service;
//
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//@Service
//@Slf4j
//public class GuidService {
//
//
//	@Autowired(required = false)
//	private ZookeeperClient zookeeperClient = null;
//
//	public GuidService() {
//	}
//
//	public long nextId() {
//		if(zookeeperClient==null){
//			log.error("Zookeeper初始化失败，请检查配置！");
//		}
//		ZookeeperWorker.init(this.zookeeperClient);
//		SnowFlakeWorker snowFlakeWorker = SnowFlakeWorker.getInstance();
//		log.debug("ZkGuidService.nextId() snowFlakeWorker={}", snowFlakeWorker);
//		long guid = snowFlakeWorker.nextId();
//		return guid;
//	}
//}
